//
//  Util.h
//  OrderApp1
//
//  Created by trimad on 11-11-6.
//  Copyright 2011 __MyCompanyName__. All rights reserved.
//

#import <Foundation/Foundation.h>

@class Order;

@interface Util : NSObject {
	
}

+ (NSString *)getParentFolder;
+ (NSString *)getPath:(NSString *)name;

+ (NSString *)readResourceForString: (NSString *) name;
+ (UIImage *)readResourceForImage: (NSString *) name;

+ (NSString *)readFileForString: (NSString *) name;
+ (void)writeFileForString:(NSString *)aString: (NSString *) name;
+ (NSMutableDictionary *)readFileForDictionary: (NSString *) name;
+ (void)writeFileForDictionary:(NSMutableDictionary *)aDictionary: (NSString *) name;
+ (UIImage *)readFileForImage: (NSString *) name;
+ (void)writeFileForImage:(UIImage *)image: (NSString *) name;

+ (NSString *)getServiceHost;
+ (NSString *)getResponseByURL: (NSString *) urlString;

+ (NSString *)getOrderJsonDataFromService;
+ (Order *)getOrderFromService;
+ (void)saveOrderFromService: (Order *) order;

@end
